<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="asd" style="width: 200px; height: 100px; overflow: hidden;">
    <div>
        <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
        <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
        <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
        <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
        <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
    </div>
</div>
<script src="/js/jquery-1.9.1.min.js"></script>
<script>
    $('.asd').children().animate({'margin-top': '-=' + ($('.asd').children().height()-100)}, 5*2000);
    var reset = function () {
        setTimeout(function (){
            $('.asd').children()[0].style.marginTop = '0px';
            $('.asd').children().animate({'margin-top': '-=' + ($('.asd').children().height()-100)}, 5*2000);
            reset();
        }, 5*2100);
    }
    reset();
</script>
</body>
</html>